-- GENERATED SPELL FOR [Wyrmkin Dreamwalker] --


function spell0_743(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(12160,pUnit)
pUnit:RegisterEvent('Sorts_743', 12000, 1)
end

function spell1_743(pUnit, Event) --@Sleep,n/a--
pUnit:FullCastSpellOnTarget(15970,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_743', 11000, 1)
end

function spell2_743(pUnit, Event) --@Thorns Aura,n/a--
pUnit:FullCastSpellOnTarget(7966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_743', 0, 1)
end

function Sorts_743(pUnit, Event)
local choix_sorts_743 = math.random(0, 2)
if choix_sorts_743 == 0 then
pUnit:RegisterEvent('spell0_743', 1, 1)
end
if choix_sorts_743 == 1 then
pUnit:RegisterEvent('spell1_743', 1, 1)
end
if choix_sorts_743 == 2 then
pUnit:RegisterEvent('spell2_743', 1, 1)
end
end

function mob743_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_743', math.random(1500, 3000), 1)
end

function mob743_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob743_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob743_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(743, 1, 'mob743_Action')
RegisterUnitEvent(743, 2, 'mob743_Leave')
RegisterUnitEvent(743, 3, 'mob743_Kill')
RegisterUnitEvent(743, 4, 'mob743_Die')
